Optimal. Leaf size=45 \[ \frac {B x}{b^2}+\frac {a (A b-a B)}{b^3 (a+b x)}+\frac {(A b-2 a B) \log (a+b x)}{b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {78}
\begin {gather*} \frac {a (A b-a B)}{b^3 (a+b x)}+\frac {(A b-2 a B) \log (a+b x)}{b^3}+\frac {B x}{b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rubi steps
\begin {align*} \int \frac {x (A+B x)}{(a+b x)^2} \, dx &=\int \left (\frac {B}{b^2}+\frac {a (-A b+a B)}{b^2 (a+b x)^2}+\frac {A b-2 a B}{b^2 (a+b x)}\right ) \, dx\\ &=\frac {B x}{b^2}+\frac {a (A b-a B)}{b^3 (a+b x)}+\frac {(A b-2 a B) \log (a+b x)}{b^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 41, normalized size = 0.91 \begin {gather*} \frac {b B x+\frac {a (A b-a B)}{a+b x}+(A b-2 a B) \log (a+b x)}{b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 46, normalized size = 1.02
method | result | size |
default | \(\frac {B x}{b^{2}}+\frac {a \left (A b -B a \right )}{b^{3} \left (b x +a \right )}+\frac {\left (A b -2 B a \right ) \ln \left (b x +a \right )}{b^{3}}\) | \(46\) |
norman | \(\frac {\frac {B \,x^{2}}{b}+\frac {a \left (A b -2 B a \right )}{b^{3}}}{b x +a}+\frac {\left (A b -2 B a \right ) \ln \left (b x +a \right )}{b^{3}}\) | \(50\) |
risch | \(\frac {B x}{b^{2}}+\frac {a A}{b^{2} \left (b x +a \right )}-\frac {a^{2} B}{b^{3} \left (b x +a \right )}+\frac {\ln \left (b x +a \right ) A}{b^{2}}-\frac {2 \ln \left (b x +a \right ) B a}{b^{3}}\) | \(61\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 53, normalized size = 1.18 \begin {gather*} -\frac {B a^{2} - A a b}{b^{4} x + a b^{3}} + \frac {B x}{b^{2}} - \frac {{\left (2 \, B a - A b\right )} \log \left (b x + a\right )}{b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.72, size = 72, normalized size = 1.60 \begin {gather*} \frac {B b^{2} x^{2} + B a b x - B a^{2} + A a b - {\left (2 \, B a^{2} - A a b + {\left (2 \, B a b - A b^{2}\right )} x\right )} \log \left (b x + a\right )}{b^{4} x + a b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.14, size = 44, normalized size = 0.98 \begin {gather*} \frac {B x}{b^{2}} + \frac {A a b - B a^{2}}{a b^{3} + b^{4} x} - \frac {\left (- A b + 2 B a\right ) \log {\left (a + b x \right )}}{b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.31, size = 80, normalized size = 1.78 \begin {gather*} \frac {\frac {{\left (b x + a\right )} B}{b^{2}} + \frac {{\left (2 \, B a - A b\right )} \log \left (\frac {{\left | b x + a \right |}}{{\left (b x + a\right )}^{2} {\left | b \right |}}\right )}{b^{2}} - \frac {\frac {B a^{2} b}{b x + a} - \frac {A a b^{2}}{b x + a}}{b^{3}}}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.31, size = 54, normalized size = 1.20 \begin {gather*} \frac {B\,x}{b^2}-\frac {B\,a^2-A\,a\,b}{b\,\left (x\,b^3+a\,b^2\right )}+\frac {\ln \left (a+b\,x\right )\,\left (A\,b-2\,B\,a\right )}{b^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________